package com.example.musicplayer.ui;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.View;

import com.example.musicplayer.R;
import com.example.musicplayer.service.MusicServiceStub;


		
		public class MainMusicPlayerActivity extends Activity {
		
		@Override
		protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_main_music_player);
				
	}
	@Override
		public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main_music_player, menu);
		return true;
	}

		public void playBtn(View v){
					
			Intent SongListActivity = new Intent(this,MusicServiceStub.class);
			SongListActivity.setAction(MusicServiceStub.ACTION_PLAY);
			startService(SongListActivity); 
				
	}	

	
		public void forwardBtn(View v){
			
			Intent SongListActivity = new Intent(this, MusicServiceStub.class);
			SongListActivity.setAction(MusicServiceStub.ACTION_FORWARD);
			startService(SongListActivity);                 
		}
	
		public void backBtn(View v){
			
			Intent SongListActivity = new Intent(this,MusicServiceStub.class);
			SongListActivity.setAction(MusicServiceStub.ACTION_BACKWARD);
			startService(SongListActivity);
						
		}
	
		public void pauseBtn(View v){
	
			Intent SongListActivity = new Intent(this, MusicServiceStub.class);
			SongListActivity.setAction(MusicServiceStub.ACTION_PAUSE);
			startService(SongListActivity);
			
			}
		
		public void repeatBtn(View v){
			
			Intent SongListActivity = new Intent(this, MusicServiceStub.class);
			SongListActivity.setAction(MusicServiceStub.ACTION_REPEAT);
			//startService(SongListActivity);
	
		
	}
		public void shuffleBtn(View v){
			
			Intent SongListActivity = new Intent(this, MusicServiceStub.class);
			SongListActivity.setAction(MusicServiceStub.ACTION_SHUFFLE);
			//startService(SongListActivity);
			
					
		}
		
public void SongList(View v){
			
			Intent SongListActivity = new Intent(this, SongListActivity.class);
		// startActivity(SongListActivity);
			
					
		}
		
		
		}
		
		
	
	
	

		
		
	
	
	

	
		
		
		
		
		